<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台详情修改页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        .form-group {
            width: 100%;
            height: 45px;
            margin-bottom: 15px;
            display: flex;
            align-self: center;
            justify-items: self-start;
        }
        .form-group label {
            display: inline-block;
            height: 40px;
            line-height: 40px;
            margin-bottom: 5px;
            width: 180px;
            color: #999;
        }
        .form-group label em{
            color: red;
            font-size: 20px;
        }
        .form-group input[type="text"]{
            display: inline-block;
            height: 40px;
            line-height: 40px;
            width: 280px;
            padding: 8px;
            box-sizing: border-box;
            border: 1px solid #eee;
        }
        .form-images{
            width: 100%;
            margin-bottom: 15px;
            border: 1px solid #000;
        }
        .form-images img{
            display: inline-block;
            height: 65px;
            border: 2px solid #000;
            margin: 3px;
        }
        form button{
            display: block;
            height: 35px;
            line-height: 25px;
            background-color: #34aaaa;
            color: #fff;
            padding:5px;
            width: 180px;
            border: 1px solid #fff;
        }
        .image-upload{
            display: inline-block;
            width: 45px;
            height: 45px;
        }
        .image-upload img{
            width: 100%;
        }
    </style>
</head>
<body>
    <div class="container">
        <form action="" method="post"> <!-- 假设提交到/submit-details处理 -->
            <div class="form-group">
                <label for="title">标题:</label>
                <input type="text" id="title" name="title" value="{$info.title|default=''}">
            </div>
            <div class="form-group">
                <label for="title">上级:</label>
                <select name="pid">
                    <option value="0">顶级</option>
                    {volist name="list" id="value"}
                        <option value="{$value.id}">{$value.title}</option>
                    {/volist}
                </select>
            </div>
            <div class="form-group">
                <label for="template">模板</label>
                <input type="text" id="template" name="template" value="{$info.template|default=''}">
            </div>
            <div class="form-group">
                <label for="url">外链接</label>
                <input type="text" id="url" name="url" value="{$info.url|default=''}">
            </div>
            <div class="form-group">
                <label for="content">内容</label>
                <textarea name="content" id="content" cols="30" rows="10">
                    {$info.content|default=''}
                </textarea>
            </div>
            <button type="submit">保存修改</button>
        </form>
    </div>

    <!-- 假设有一个简单的JavaScript用于处理封面图片的预览 -->
    <script>
        document.getElementById('cover-image-input').addEventListener('change', function(event) {
            const file = event.target.files[0];
            const reader = new FileReader();
            reader.onload = function(e) {
                document.getElementById('cover-image-preview').src = e.target.result;
            };
            reader.readAsDataURL(file);
        });
    </script>
</body>
</html>